package com.kelvin.retrofitrxdemo;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by MCK on 2017/4/20.
 */

public interface GitHubClient {
    @GET("users/{user}/repos")
    Call<List<GitHubRepo>> reposForUser(@Path("user") String user);

    @GET("users/{user}/repos")
    Observable<List<GitHubRepo>> reposForUserRx(@Path("user") String user);
}
